<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		#box{
			width:200px;
			height: 200px;
			padding-top: 20px;
			background: red url() 0 0 no-repeat;
		}
	</style>
	<script type="text/javascript">
		
		window.onload = function (){

			box = document.getElementById('box');

			data = box.innerHTML;

			// data = box.textContent;

			// alert(data);

			box.innerHTML = "<a href='http://www.baidu.com'>百度一下</a>";


			time = document.getElementById('time');

			function run(argument) {
				var nowTime = Math.round((new Date).getTime()/1000);

				var wuyiTime = Math.round((new Date('2018-05-01 0:0:0')).getTime()/1000);

				var diff = wuyiTime-nowTime;

				var day  = Math.floor(diff/86400);

				var hdiff = diff%86400;

				var hours  = Math.floor(hdiff/3600);

				var mdiff = hdiff%3600;

				var min  = Math.floor(mdiff/60);

				var Second = mdiff%60;

				time.innerHTML = day+"天"+hours+"小时"+min+"分钟"+Second+"秒";
			}

			setInterval(run,1000);

		}
	</script>

</head>
<body>
	<div id="box"><a href="">学并思</a></div>
	<p id="time"></p>
</body>
</html>